#include <iostream>
#include <cstdlib>
#include "DynamicPropertyList.h"

using namespace std;
using namespace DreamCatcher::BoardGame;

int main()
{
	DynamicPropertyList dpl;

	dpl.AddProperty( t("Name"), DPT_String );
	dpl.AddProperty( t("Sex"), DPT_Boolean );
	dpl.AddProperty( t("Health"), DPT_Integer );
	dpl.AddProperty( t("DPS"), DPT_Float );

	dpl.SetValue( t("Name"), t("Fitbos") );
	dpl.SetValue( t("Sex"), true );
	dpl.SetValue( t("Health"), 100 );
	dpl.SetValue( t("DPS"), 10.13f );

	tstring name = dpl.GetValue( t("Name") );
	bool sex = dpl.GetValue( t("Sex") );

	tcout << "Name = " << name << endl;
	tcout << "Sex = " << sex << endl;
	tcout << "Health = " << dpl.GetValue( t("Health") ) << endl;
	tcout << "DPS = " << dpl.GetValue( t("DPS") ) << endl;
	
	system( "PAUSE" );
	return 0;
}